From 72a8d6c17b81aea14b50cd73569b033fbd21b6d3 Mon Sep 17 00:00:00 2001 From: robertl Date: Fri, 15 Nov 2002 06:09:24 +0000 Subject: [PATCH] Use new 'GPS_Diag' for diagnosing data to/from serial port. git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@161 f51c46e8-681c-474f-0cfe-069cfd0219fb --- gpsbabel/jeeps/gpsread.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gpsbabel/jeeps/gpsread.c b/gpsbabel/jeeps/gpsread.c index e7af43b9a..04e87c826 100644 --- a/gpsbabel/jeeps/gpsread.c +++ b/gpsbabel/jeeps/gpsread.c @@ -83,6 +83,7 @@ int32 GPS_Packet_Read(int32 fd, GPS_PPacket *packet) p = (*packet)->data; start = GPS_Time_Now(); + GPS_Diag("\nRx Data:"); while(GPS_Time_Now() < start+GPS_TIME_OUT) { if((n=GPS_Serial_Chars_Ready(fd))) @@ -95,7 +96,7 @@ int32 GPS_Packet_Read(int32 fd, GPS_PPacket *packet) return 0; } - GPS_Diagnose(u); + GPS_Diag("%02x ", u); if(!len) { -- 2.30.2